import request from './login_api.js'

// 检查用户名是否重复
export function checkUsername(username) {
    return request({
        url: '/user/check/username',
        method: 'get',
        params: { username }
    })
}

// 检查邮箱是否重复
export function checkEmail(email) {
    return request({
        url: '/user/check/email',
        method: 'get',
        params: { email }
    })
}

// 检查手机号是否重复
export function checkPhone(phone) {
    return request({
        url: '/user/check/phone',
        method: 'get',
        params: { phone }
    })
}
